Skip to content

Conversation

@sudw1n
Copy link
Contributor

@sudw1n sudw1n commented Jul 21, 2025

No description provided.

#define KERNEL_DS 0x10
#define USER_CS 0x18
#define USER_DS 0x20
```
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we use them in the gdt code below? (gdt_entries[0] with i.e. gdt_entries[NULL] etc? )

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gdt_entries is an array of uint64_ts, that'd break unless it was shifted. IMO it's simpler to leave the below code as is.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

right!

Copy link
Contributor Author

@sudw1n sudw1n Jul 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, that's why I mentioned (in our conversation on Discord) that the author didn't use macros as it wasn't required/relevant there.

@DeanoBurrito DeanoBurrito merged commit f36ac62 into dreamportdev:master Jul 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants